#define _CRT_SECURE_NO_WARNINGS 1

//#include <stdio.h>
//int main()
//{
//	int i = 0, a = 0, b = 2, c = 3, d = 4;
//	i = a++ && ++b && d++;
//	//i = a++||++b||d++;
//	printf("a = %d\n b = %d\n c = %d\nd = %d\n", a, b, c, d);
//	return 0;
//}

#include <stdio.h>

struct Stu
{
	char name[20];
	int age;
	float score;
}s1;

//int main()
//{
//	struct Stu s2 = { "zhangsan",18,90.1f };
//	printf("%s %d %.2f\n", s2.name, s2.age, s2.score);
//	struct Stu s3 = { .score = 82.4f,.name = "zhangsan",.age = 20 };
//	printf("%s %d %.2f\n", s3.name, s3.age, s3.score);
//	return 0;
//}

struct
{
	char a;
	int b;
}x;

struct
{
	char x;
	int y;
}*p;

typedef struct
{
	char x;
	int y;
}S;

//#include <stdio.h>
//
//int main()
//{
//	S s1 = { 1,2 };
//	return 0;
//}

//#include <stdio.h>
//
//struct Node
//{
//	int data;
//	struct Node *next;
//};
//int main()
//{
//
//	return 0;
//}

#include <stdio.h>

struct s1
{
	char c1;
	int i;
	char c2;
};

struct s2
{
	char c1;
	char c2;
	int i;
};
struct S3
{
	double d;
	char c;
	int i;
};
struct S4
{
	char c1;
	struct S3 s3;
	double d;
};
int main()
{
	printf("struct s1 = %zd\n", sizeof(struct S4));
	return 0;
}